\chapter{Appendix}
\begin{lstlisting}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class SineGen
    {
        static void Main(string[] args)
        {
            int[] sampleRates = {168, 159, 150, 141, 133,126, 119, 112, 106, 100, 94, 89};
            for (int j = 0; j < sampleRates.Length; j++)
            {
                double currentStep = (2 * Math.PI) / (double)sampleRates[j];
                double current = 0.0;
                
                string currentLine = ("{");
                for (int i = 0; i < sampleRates[j]; i++)
                {
                    currentLine += (" " + (Math.Sin(current) * 16383.0).ToString() + ",");
                    current += currentStep;
                }
                currentLine += "}";
                Console.WriteLine(currentLine);

            }         
        }
    }
}
\end{lstlisting}